<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 2018/11/5
 * Time: 16:47
 */

namespace common\models\credit_old_app;


use common\models\credit_app\Order;

/**
 * Class SlOrder
 * @package common\models\credit_old_app
 *
 * @property Order $dyhlOrder
 * @property SlMakePledge $slMakePledge
 */
class SlOrder extends \common\models\credit_old_app_tables\SlOrder
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getDyhlOrder()
    {
        return $this->hasOne(Order::class, ['o_id' => 'o_fcustid']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getSlMakePledge()
    {
        return $this->hasOne(SlMakePledge::class, ['mp_number' => 'o_number']);
    }
}